#ifndef __BE_HANDLE__
#define __BE_HANDLE__

class Handle
{
 private:
  static int nextId;
  
  int id;

  Handle(int _id);

 public:
  enum {
    INVALID_HANDLE = 0,
  };

  Handle();
  Handle(const Handle &_handle);
  int getId() const;
  bool isInvalid() const;

  static Handle getNewHandle();

};

#endif
